package com.ruoyi.project.pro.texture.mapper;

import com.ruoyi.project.pro.texture.domain.ProTexture;

import java.util.List;

/**
 * @program: zhizun
 * @author: Mrs.ye
 * @create: 2020-09-16 22:21
 * @description: 产品风格管理的mapper层
 **/
public interface TextureMapper {
    /**
     * 分页查询产品风格,包括按照产品风格名称查询
     * @param proTexture
     * @return
     */
    public List<ProTexture> selectTextureList(ProTexture proTexture);

    /**
     * 检验产品风格名称是否一致
     * @param textureName
     * @return
     */
    ProTexture checkTextureNameUnique(String textureName);

    /**
     * 新增产品风格
     * @param proTexture
     * @return
     */
    int insertProTexture(ProTexture proTexture);

    ProTexture selectTextureById(Long textureId);

    int updateTexture(ProTexture proTexture);

    int removeProTextureById(Long[] ids);
}
